using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class MicroMsgResponse : GeneratedMessageLite<MicroMsgResponse, MicroMsgResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<MicroMsgResponse, MicroMsgResponse.Builder>
		{
			private bool resultIsReadOnly;
			private MicroMsgResponse result;
			protected override MicroMsgResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override MicroMsgResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override MicroMsgResponse DefaultInstanceForType
			{
				get
				{
					return MicroMsgResponse.DefaultInstance;
				}
			}
			public int Ret
			{
				get
				{
					return this.result.Ret;
				}
				set
				{
					this.SetRet(value);
				}
			}
			public SKBuiltinString_t FromUserName
			{
				get
				{
					return this.result.FromUserName;
				}
				set
				{
					this.SetFromUserName(value);
				}
			}
			public SKBuiltinString_t ToUserName
			{
				get
				{
					return this.result.ToUserName;
				}
				set
				{
					this.SetToUserName(value);
				}
			}
			public uint MsgId
			{
				get
				{
					return this.result.MsgId;
				}
				set
				{
					this.SetMsgId(value);
				}
			}
			public string ClientMsgId
			{
				get
				{
					return this.result.ClientMsgId;
				}
				set
				{
					this.SetClientMsgId(value);
				}
			}
			public uint CreateTime
			{
				get
				{
					return this.result.CreateTime;
				}
				set
				{
					this.SetCreateTime(value);
				}
			}
			public uint Type
			{
				get
				{
					return this.result.Type;
				}
				set
				{
					this.SetType(value);
				}
			}
			public Builder()
			{
				this.result = MicroMsgResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(MicroMsgResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private MicroMsgResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					MicroMsgResponse other = this.result;
					this.result = new MicroMsgResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override MicroMsgResponse.Builder Clear()
			{
				this.result = MicroMsgResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override MicroMsgResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new MicroMsgResponse.Builder(this.result);
				}
				return new MicroMsgResponse.Builder().MergeFrom(this.result);
			}
			public override MicroMsgResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override MicroMsgResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is MicroMsgResponse)
				{
					return this.MergeFrom((MicroMsgResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override MicroMsgResponse.Builder MergeFrom(MicroMsgResponse other)
			{
				return this;
			}
			public override MicroMsgResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override MicroMsgResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(MicroMsgResponse._microMsgResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = MicroMsgResponse._microMsgResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 26u)
					{
						if (num3 <= 8u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 8u)
							{
								this.result.hasRet = input.ReadInt32(ref this.result.ret_);
								continue;
							}
						}
						else
						{
							if (num3 == 18u)
							{
								SKBuiltinString_t.Builder builder = SKBuiltinString_t.CreateBuilder();
								if (this.result.hasFromUserName)
								{
									builder.MergeFrom(this.FromUserName);
								}
								input.ReadMessage(builder, extensionRegistry);
								this.FromUserName = builder.BuildPartial();
								continue;
							}
							if (num3 == 26u)
							{
								SKBuiltinString_t.Builder builder2 = SKBuiltinString_t.CreateBuilder();
								if (this.result.hasToUserName)
								{
									builder2.MergeFrom(this.ToUserName);
								}
								input.ReadMessage(builder2, extensionRegistry);
								this.ToUserName = builder2.BuildPartial();
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 42u)
						{
							if (num3 == 32u)
							{
								this.result.hasMsgId = input.ReadUInt32(ref this.result.msgId_);
								continue;
							}
							if (num3 == 42u)
							{
								this.result.hasClientMsgId = input.ReadString(ref this.result.clientMsgId_);
								continue;
							}
						}
						else
						{
							if (num3 == 48u)
							{
								this.result.hasCreateTime = input.ReadUInt32(ref this.result.createTime_);
								continue;
							}
							if (num3 == 56u)
							{
								this.result.hasType = input.ReadUInt32(ref this.result.type_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public MicroMsgResponse.Builder SetRet(int value)
			{
				this.PrepareBuilder();
				this.result.hasRet = true;
				this.result.ret_ = value;
				return this;
			}
			public MicroMsgResponse.Builder ClearRet()
			{
				this.PrepareBuilder();
				this.result.hasRet = false;
				this.result.ret_ = 0;
				return this;
			}
			public MicroMsgResponse.Builder SetFromUserName(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasFromUserName = true;
				this.result.fromUserName_ = value;
				return this;
			}
			public MicroMsgResponse.Builder SetFromUserName(SKBuiltinString_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasFromUserName = true;
				this.result.fromUserName_ = builderForValue.Build();
				return this;
			}
			public MicroMsgResponse.Builder MergeFromUserName(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasFromUserName && this.result.fromUserName_ != SKBuiltinString_t.DefaultInstance)
				{
					this.result.fromUserName_ = SKBuiltinString_t.CreateBuilder(this.result.fromUserName_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.fromUserName_ = value;
				}
				this.result.hasFromUserName = true;
				return this;
			}
			public MicroMsgResponse.Builder ClearFromUserName()
			{
				this.PrepareBuilder();
				this.result.hasFromUserName = false;
				this.result.fromUserName_ = null;
				return this;
			}
			public MicroMsgResponse.Builder SetToUserName(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasToUserName = true;
				this.result.toUserName_ = value;
				return this;
			}
			public MicroMsgResponse.Builder SetToUserName(SKBuiltinString_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasToUserName = true;
				this.result.toUserName_ = builderForValue.Build();
				return this;
			}
			public MicroMsgResponse.Builder MergeToUserName(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasToUserName && this.result.toUserName_ != SKBuiltinString_t.DefaultInstance)
				{
					this.result.toUserName_ = SKBuiltinString_t.CreateBuilder(this.result.toUserName_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.toUserName_ = value;
				}
				this.result.hasToUserName = true;
				return this;
			}
			public MicroMsgResponse.Builder ClearToUserName()
			{
				this.PrepareBuilder();
				this.result.hasToUserName = false;
				this.result.toUserName_ = null;
				return this;
			}
			public MicroMsgResponse.Builder SetMsgId(uint value)
			{
				this.PrepareBuilder();
				this.result.hasMsgId = true;
				this.result.msgId_ = value;
				return this;
			}
			public MicroMsgResponse.Builder ClearMsgId()
			{
				this.PrepareBuilder();
				this.result.hasMsgId = false;
				this.result.msgId_ = 0u;
				return this;
			}
			public MicroMsgResponse.Builder SetClientMsgId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasClientMsgId = true;
				this.result.clientMsgId_ = value;
				return this;
			}
			public MicroMsgResponse.Builder ClearClientMsgId()
			{
				this.PrepareBuilder();
				this.result.hasClientMsgId = false;
				this.result.clientMsgId_ = "";
				return this;
			}
			public MicroMsgResponse.Builder SetCreateTime(uint value)
			{
				this.PrepareBuilder();
				this.result.hasCreateTime = true;
				this.result.createTime_ = value;
				return this;
			}
			public MicroMsgResponse.Builder ClearCreateTime()
			{
				this.PrepareBuilder();
				this.result.hasCreateTime = false;
				this.result.createTime_ = 0u;
				return this;
			}
			public MicroMsgResponse.Builder SetType(uint value)
			{
				this.PrepareBuilder();
				this.result.hasType = true;
				this.result.type_ = value;
				return this;
			}
			public MicroMsgResponse.Builder ClearType()
			{
				this.PrepareBuilder();
				this.result.hasType = false;
				this.result.type_ = 0u;
				return this;
			}
		}
		public const int RetFieldNumber = 1;
		public const int FromUserNameFieldNumber = 2;
		public const int ToUserNameFieldNumber = 3;
		public const int MsgIdFieldNumber = 4;
		public const int ClientMsgIdFieldNumber = 5;
		public const int CreateTimeFieldNumber = 6;
		public const int TypeFieldNumber = 7;
		private static readonly MicroMsgResponse defaultInstance;
		private static readonly string[] _microMsgResponseFieldNames;
		private static readonly uint[] _microMsgResponseFieldTags;
		private bool hasRet;
		private int ret_;
		private bool hasFromUserName;
		private SKBuiltinString_t fromUserName_;
		private bool hasToUserName;
		private SKBuiltinString_t toUserName_;
		private bool hasMsgId;
		private uint msgId_;
		private bool hasClientMsgId;
		private string clientMsgId_ = "";
		private bool hasCreateTime;
		private uint createTime_;
		private bool hasType;
		private uint type_;
		private int memoizedSerializedSize = -1;
		public static MicroMsgResponse DefaultInstance
		{
			get
			{
				return MicroMsgResponse.defaultInstance;
			}
		}
		public override MicroMsgResponse DefaultInstanceForType
		{
			get
			{
				return MicroMsgResponse.DefaultInstance;
			}
		}
		protected override MicroMsgResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public int Ret
		{
			get
			{
				return this.ret_;
			}
		}
		public SKBuiltinString_t FromUserName
		{
			get
			{
				return this.fromUserName_ ?? SKBuiltinString_t.DefaultInstance;
			}
		}
		public SKBuiltinString_t ToUserName
		{
			get
			{
				return this.toUserName_ ?? SKBuiltinString_t.DefaultInstance;
			}
		}
		public uint MsgId
		{
			get
			{
				return this.msgId_;
			}
		}
		public string ClientMsgId
		{
			get
			{
				return this.clientMsgId_;
			}
		}
		public uint CreateTime
		{
			get
			{
				return this.createTime_;
			}
		}
		public uint Type
		{
			get
			{
				return this.type_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasRet && this.hasFromUserName && this.hasToUserName && this.hasMsgId && this.hasCreateTime;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasRet)
				{
					num += CodedOutputStream.ComputeInt32Size(1, this.Ret);
				}
				if (this.hasFromUserName)
				{
					num += CodedOutputStream.ComputeMessageSize(2, this.FromUserName);
				}
				if (this.hasToUserName)
				{
					num += CodedOutputStream.ComputeMessageSize(3, this.ToUserName);
				}
				if (this.hasMsgId)
				{
					num += CodedOutputStream.ComputeUInt32Size(4, this.MsgId);
				}
				if (this.hasClientMsgId)
				{
					num += CodedOutputStream.ComputeStringSize(5, this.ClientMsgId);
				}
				if (this.hasCreateTime)
				{
					num += CodedOutputStream.ComputeUInt32Size(6, this.CreateTime);
				}
				if (this.hasType)
				{
					num += CodedOutputStream.ComputeUInt32Size(7, this.Type);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private MicroMsgResponse()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] microMsgResponseFieldNames = MicroMsgResponse._microMsgResponseFieldNames;
			if (this.hasRet)
			{
				output.WriteInt32(1, microMsgResponseFieldNames[4], this.Ret);
			}
			if (this.hasFromUserName)
			{
				output.WriteMessage(2, microMsgResponseFieldNames[2], this.FromUserName);
			}
			if (this.hasToUserName)
			{
				output.WriteMessage(3, microMsgResponseFieldNames[5], this.ToUserName);
			}
			if (this.hasMsgId)
			{
				output.WriteUInt32(4, microMsgResponseFieldNames[3], this.MsgId);
			}
			if (this.hasClientMsgId)
			{
				output.WriteString(5, microMsgResponseFieldNames[0], this.ClientMsgId);
			}
			if (this.hasCreateTime)
			{
				output.WriteUInt32(6, microMsgResponseFieldNames[1], this.CreateTime);
			}
			if (this.hasType)
			{
				output.WriteUInt32(7, microMsgResponseFieldNames[6], this.Type);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasRet)
			{
				num ^= this.ret_.GetHashCode();
			}
			if (this.hasFromUserName)
			{
				num ^= this.fromUserName_.GetHashCode();
			}
			if (this.hasToUserName)
			{
				num ^= this.toUserName_.GetHashCode();
			}
			if (this.hasMsgId)
			{
				num ^= this.msgId_.GetHashCode();
			}
			if (this.hasClientMsgId)
			{
				num ^= this.clientMsgId_.GetHashCode();
			}
			if (this.hasCreateTime)
			{
				num ^= this.createTime_.GetHashCode();
			}
			if (this.hasType)
			{
				num ^= this.type_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			MicroMsgResponse microMsgResponse = value as MicroMsgResponse;
			return microMsgResponse != null && (this.hasRet == microMsgResponse.hasRet && (!this.hasRet || this.ret_.Equals(microMsgResponse.ret_))) && (this.hasFromUserName == microMsgResponse.hasFromUserName && (!this.hasFromUserName || this.fromUserName_.Equals(microMsgResponse.fromUserName_))) && (this.hasToUserName == microMsgResponse.hasToUserName && (!this.hasToUserName || this.toUserName_.Equals(microMsgResponse.toUserName_))) && (this.hasMsgId == microMsgResponse.hasMsgId && (!this.hasMsgId || this.msgId_.Equals(microMsgResponse.msgId_))) && (this.hasClientMsgId == microMsgResponse.hasClientMsgId && (!this.hasClientMsgId || this.clientMsgId_.Equals(microMsgResponse.clientMsgId_))) && (this.hasCreateTime == microMsgResponse.hasCreateTime && (!this.hasCreateTime || this.createTime_.Equals(microMsgResponse.createTime_))) && (this.hasType == microMsgResponse.hasType && (!this.hasType || this.type_.Equals(microMsgResponse.type_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<MicroMsgResponse, MicroMsgResponse.Builder>.PrintField("Ret", this.hasRet, this.ret_, writer);
			GeneratedMessageLite<MicroMsgResponse, MicroMsgResponse.Builder>.PrintField("FromUserName", this.hasFromUserName, this.fromUserName_, writer);
			GeneratedMessageLite<MicroMsgResponse, MicroMsgResponse.Builder>.PrintField("ToUserName", this.hasToUserName, this.toUserName_, writer);
			GeneratedMessageLite<MicroMsgResponse, MicroMsgResponse.Builder>.PrintField("MsgId", this.hasMsgId, this.msgId_, writer);
			GeneratedMessageLite<MicroMsgResponse, MicroMsgResponse.Builder>.PrintField("ClientMsgId", this.hasClientMsgId, this.clientMsgId_, writer);
			GeneratedMessageLite<MicroMsgResponse, MicroMsgResponse.Builder>.PrintField("CreateTime", this.hasCreateTime, this.createTime_, writer);
			GeneratedMessageLite<MicroMsgResponse, MicroMsgResponse.Builder>.PrintField("Type", this.hasType, this.type_, writer);
		}
		public static MicroMsgResponse ParseFrom(byte[] data)
		{
			return MicroMsgResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private MicroMsgResponse MakeReadOnly()
		{
			return this;
		}
		public static MicroMsgResponse.Builder CreateBuilder()
		{
			return new MicroMsgResponse.Builder();
		}
		public override MicroMsgResponse.Builder ToBuilder()
		{
			return MicroMsgResponse.CreateBuilder(this);
		}
		public override MicroMsgResponse.Builder CreateBuilderForType()
		{
			return new MicroMsgResponse.Builder();
		}
		public static MicroMsgResponse.Builder CreateBuilder(MicroMsgResponse prototype)
		{
			return new MicroMsgResponse.Builder(prototype);
		}
		static MicroMsgResponse()
		{
			MicroMsgResponse.defaultInstance = new MicroMsgResponse().MakeReadOnly();
			MicroMsgResponse._microMsgResponseFieldNames = new string[]
			{
				"ClientMsgId",
				"CreateTime",
				"FromUserName",
				"MsgId",
				"Ret",
				"ToUserName",
				"Type"
			};
			MicroMsgResponse._microMsgResponseFieldTags = new uint[]
			{
				42u,
				48u,
				18u,
				32u,
				8u,
				26u,
				56u
			};
			object.ReferenceEquals(micromsg.Proto.MicroMsgResponse.Descriptor, null);
		}
	}
}
